package mi.payment.transaction.balance;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import mi.payment.R;
import mi.payment.transaction.V2SwingCardActivity;

/**
 * 余额模块 -- 刷卡界面
 *
 * @author KenMa on 2017/1/8.
 */
public class BalanceSwingCardActivity extends V2SwingCardActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
        startCheckCard();
    }

    private void initView() {
        mTvTitle.setText(R.string.menu_query_balance);

        setAmount(1);
        showAmountView(false);
    }

    @Override
    public void onCheckCardSuccess() {
        BalanceInputPasswordActivity.startAction(this);
        finish();
    }

    public static void startAction(Context context) {
        Intent intent = new Intent(context, BalanceSwingCardActivity.class);
        context.startActivity(intent);
    }

}
